package com.gxa.modules.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.entity.CrmFinancial;
import com.gxa.modules.mapper.CrmFinancialMapper;
import com.gxa.modules.service.CrmFinancialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CrmFinancialServiceImpl extends ServiceImpl<CrmFinancialMapper, CrmFinancial> implements CrmFinancialService {

    @Autowired
    private CrmFinancialMapper crmFinancialMapper;
    @Override
    public List<CrmFinancial> listPage(Map<String, Object> queryCondition, Integer pageNo, Integer pageSize) {
        Integer offset = (pageNo - 1) * pageSize;
        Integer rows = pageSize;
        queryCondition.put("offset",offset);
        queryCondition.put("rows",rows);

        return   crmFinancialMapper.findEmpListByCondition(queryCondition);
    }
}
